/**
 * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 */

package com.iwindplus.gateway.server.service;

import java.util.List;
import org.springframework.cloud.gateway.route.RouteDefinition;

/**
 * 路由接口类.
 *
 * @author zengdegui
 * @since 2020/5/29
 */
public interface RouteService {

    /**
     * 添加路由.
     *
     * @param entities 对象集合
     */
    void saveRoute(List<RouteDefinition> entities);

    /**
     * 编辑路由.
     *
     * @param entities 对象集合
     */
    void editRoute(List<RouteDefinition> entities);

    /**
     * 删除路由.
     *
     * @param entities 对象集合
     */
    void deleteRoute(List<RouteDefinition> entities);

    /**
     * 刷新路由.
     *
     * @param entities 对象集合
     */
    void refreshRoute(List<RouteDefinition> entities);
}
